//
//  HLiveScrollView.m
//  linktuIOS
//
//  Created by hejunsong on 17/1/22.
//  Copyright © 2017年 tianxie. All rights reserved.
//

#import "HLiveScrollView.h"

@implementation HLiveScrollView
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
   
    }
    return self;
}

- (UIView*)hitTest:(CGPoint)point withEvent:(UIEvent *)event{
    UIView* result = [super hitTest:point withEvent:event];
    if ([result isKindOfClass:[UISlider class]])
    {        self.scrollEnabled = NO;
                                        
    }
    else     {
        self.scrollEnabled = YES;
    }
    return result;
}


-(void)dealloc
{
    
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
}
@end
